/*
* Copyright 2015 2dfire.com All right reserved. This software is the
* confidential and proprietary information of 2dfire.com ("Confidential
* Information"). You shall not disclose such Confidential Information and shall
* use it only in accordance with the terms of the license agreement you entered
* into with 2dfire.com.
*/
package com.dfire.mtm.taskNode.impl;

import com.dfire.mtm.executor.MtmRunnable;
import com.dfire.mtm.taskNode.AbstractTaskNode;

import java.util.concurrent.ExecutorService;

/**
 * @author guipi
 * @description
 * @date 2018/10/23
 * ----------重大变更记录------------
 */
public class DefaultTaskNode extends AbstractTaskNode{

    public DefaultTaskNode(String name) {
        this.name = name;
    }

    public DefaultTaskNode(String name, MtmRunnable mtmRunnable, ExecutorService executorService) {
        this.name = name;
        this.mtmRunnable = mtmRunnable;
        this.mtmRunnable.setTaskNode(this);
        this.executor = executorService;
    }
}
